package day4.car;

/**
 * @author oldliu
 * @since 1.0
 */
//公交车
public class Bus {
    String line;
    String from;
    String to;
    public Bus(String line,String from,String to){
        this.line=line;
        this.from=from;
        this.to=to;
    }
    public void work(){
        System.out.println(line+"路公交从"+from+"开往"+to+",门口的旅客亲往里面走一走");
    }
}
